﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
namespace proRFID_DiemDanh.DiemDanh
{
    public partial class Chitiet : System.Web.UI.Page
    {
        public int id = 1;
        
        protected void Page_Load(object sender, EventArgs e)
        {
            mdDiemDanh.ngayhoc = Request["ngaygio"];
            mdDiemDanh.buoi=Convert.ToInt32(Request["buoihoc"]);
            mdDiemDanh.magv=Convert.ToInt32(Request["giaovien"]);
            mdDiemDanh.phong=Convert.ToInt32(Request["phong"]);
            mdDiemDanh.lop = Convert.ToInt32(Request["lop"]);
            mdDiemDanh.monhoc = Convert.ToInt32(Request["mon"]);
            
            lbl_masv.Text = Request["ID"];
            lbl_hoten.Text = Request["hosv"] + " " + Request["tensv"];
            lbl_mathe.Text = Request["mathe"];
            lbl_ngay.Text = mdDiemDanh.ngayhoc;
            rpt_danhsach.DataSource = mdDiemDanh.DiemDanh_chitietquetthe(Request["ID"], Request["ngaygio"]); ;
            rpt_danhsach.DataBind();           
        }        

        protected void cmd_back_Click(object sender, EventArgs e)
        {
            Response.Redirect("DiemDanh.aspx?MASV="+lbl_masv.Text);
            
        }
    }
}